#ifndef __GPIO_H__
#define __GPIO_H__

#define PWMPin 				GP11

#define LEDPin			 	GP42
#define SetLEDPin			GP42 = 1
#define ResetLEDPin			GP42 = 0
#define LEDPinONOFF			GP42 = ~GP42

#define SetPower_LEDPin			 	{GP11 = 1;}
#define ResetPower_LEDPin			 	{GP11 = 0;}

#define SetSpeed_LEDPin			 	{GP01 = 1;}
#define ResetSpeed_LEDPin			 	{GP01 = 0;}

#define SetYaoTou_LEDPin			{GP21 = 1;}
#define ResetYaoTou_LEDPin			{GP21 = 0;}

#define FRPin			 GP07


#define PWM1							GP34
#define PWM2							GP33
// #define PHASE_A 				GP33
// #define PHASE_B 				GP34
// #define PHASE_C 				GP01
// #define PHASE_D 				GP12
// #define ALLPHASE_OFF 			{PHASE_A=0,PHASE_B=0,PHASE_C=0,PHASE_D=0;}

#define Key_YaoTou 				GP14
#define Key_Power_Speed 		GP16

#define		BUZZERPin                       GP12
#define 	SetBUZZERPin                    {BUZZERPin = 1;}
#define 	ResetBUZZERPin                  {BUZZERPin = 0;}


#define FPin 				  GP05
#define SetFGPin			  {GP05 = 1;}
#define ResetFGPin		  {GP05 = 0;}
#define FPinONOFF      {GP05 = ~GP05;}

/*************************************************************************************///External Function
extern void GPIO_Init(void);
extern void GPIO_Default_Init(void);
extern void INT0_Init(void);

#endif
































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































